package com.newcapec.dao;

import com.newcapec.entity.UserInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserInfoDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfoEntity record);

    boolean insertSelective(UserInfoEntity record);

    UserInfoEntity selectByPrimaryKey(Integer userId);

    boolean updateByPrimaryKeySelective(UserInfoEntity record);

    int updateByPrimaryKey(UserInfoEntity record);

//    List<UserInfoEntity> selectAll();
    List<UserInfoEntity> selectAll(UserInfoEntity userInfo);
    UserInfoEntity login(@Param("userName") String userName, @Param("userPwd") String userPwd);

    boolean saveBath(List<UserInfoEntity> list);

//    boolean batchDelete(int[] allUserId);
}
